import { useState } from 'react'

import {useRoutes,Link} from 'react-router-dom'
import router from './router'



function App() {
  const [count, setCount] = useState(0)
  const outlet= useRoutes(router) //这里的outlet是自定义的命名  
  return (
    <div className='App'>
        {outlet}
    </div>
  )
}

export default App
